package com.waijiaojun.tpo.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.waijiaojun.tpo.entity.Tpo;
import com.waijiaojun.tpo.repository.TpoDao;

@Service
public class TpoService{

    @Resource
    private TpoDao tpoDao;

    public int insert(Tpo pojo){
        return tpoDao.insert(pojo);
    }

    public int insertSelective(Tpo pojo){
        return tpoDao.insertSelective(pojo);
    }

    public int insertList(List<Tpo> pojos){
        return tpoDao.insertList(pojos);
    }

    public int update(Tpo pojo){
        return tpoDao.update(pojo);
    }
}
